package day1026_4;

import java.util.Scanner;

public class D4 {
    public static void main(String[] args) {
        Scanner s=new  Scanner(System.in);  //1.import
        System.out.println(  "请输入一个总价；");
        double   price=s.nextDouble();
        System.out.println(     price>500?   price*0.8:    price    );
    }
}


